package cn.com.huzo.model.entities.manufacture;

import huzofw.model.entities.BaseEntity;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 生产跟单明细记录实体类
 * <p>
 * @author 范学春
 */
public class PmsLinesEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -2010040712629216762L;
    private String LinesId;
    private Long HeaderId;             // 所属生产跟单表ID
    private Long AssumingContractId;   // 加工合同主表HeaderId
    private String SideBName;          // 加工单位
    private Integer ColourId;
    private String ColourName;
    private Integer Sizeid;
    private String SizeName;
    private Integer OrderQuantity;             // 国贸中对应的色码的合同数
    private Integer AssumingContractQuantity;  // 对应颜色尺码的加工合同数量
    private Integer ProductionTeam;            // 生产班组  
    private String ProductionTeamName;
    private Integer ArrangedQuantity;          // 计划数
    private Integer CompletedQuantity;         // 完工数

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public Long getAssumingContractId() {
        return AssumingContractId;
    }

    public void setAssumingContractId(Long AssumingContractId) {
        this.AssumingContractId = AssumingContractId;
    }

    public String getSideBName() {
        return SideBName;
    }

    public void setSideBName(String SideBName) {
        this.SideBName = SideBName;
    }

    public Integer getColourId() {
        return ColourId;
    }

    public void setColourId(Integer ColourId) {
        this.ColourId = ColourId;
    }

    public String getColourName() {
        return ColourName;
    }

    public void setColourName(String ColourName) {
        this.ColourName = ColourName;
    }

    public Integer getSizeid() {
        return Sizeid;
    }

    public void setSizeid(Integer Sizeid) {
        this.Sizeid = Sizeid;
    }

    public String getSizeName() {
        return SizeName;
    }

    public void setSizeName(String SizeName) {
        this.SizeName = SizeName;
    }

    public Integer getOrderQuantity() {
        return OrderQuantity;
    }

    public void setOrderQuantity(Integer OrderQuantity) {
        this.OrderQuantity = OrderQuantity;
    }

    public Integer getAssumingContractQuantity() {
        return AssumingContractQuantity;
    }

    public void setAssumingContractQuantity(Integer AssumingContractQuantity) {
        this.AssumingContractQuantity = AssumingContractQuantity;
    }

    public Integer getProductionTeam() {
        return ProductionTeam;
    }

    public void setProductionTeam(Integer ProductionTeam) {
        this.ProductionTeam = ProductionTeam;
    }

    public String getProductionTeamName() {
        return ProductionTeamName;
    }

    public void setProductionTeamName(String ProductionTeamName) {
        this.ProductionTeamName = ProductionTeamName;
    }

    public Integer getArrangedQuantity() {
        return ArrangedQuantity;
    }

    public void setArrangedQuantity(Integer ArrangedQuantity) {
        this.ArrangedQuantity = ArrangedQuantity;
    }

    public Integer getCompletedQuantity() {
        return CompletedQuantity;
    }

    public void setCompletedQuantity(Integer CompletedQuantity) {
        this.CompletedQuantity = CompletedQuantity;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof PmsLinesEntity)) {
            return false;
        }

        final PmsLinesEntity that = (PmsLinesEntity) o;

        return new EqualsBuilder()
            .append(this.getLinesId(), that.getLinesId())
            .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
